package com.yljk.homedoctor.model.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

public class MyRoonEntity implements Comparable<MyRoonEntity>, MultiItemEntity {

    private int id;
    private String name;
    private String selectIcon;
    private String unselectIcon;
    private int unReadCount;
    private String unReadCountDesc;
    private boolean isHasFunction;
    private int type;

    public MyRoonEntity(int id, String name, String selectIcon, String unselectIcon, int unReadCount, boolean isHasFunction) {
        this.id = id;
        this.name = name;
        this.selectIcon = selectIcon;
        this.unselectIcon = unselectIcon;
        this.unReadCount = unReadCount;
        this.isHasFunction = isHasFunction;
    }

    public String getUnReadCountDesc() {
        return unReadCountDesc;
    }

    public void setUnReadCountDesc(String unReadCountDesc) {
        this.unReadCountDesc = unReadCountDesc;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSelectIcon() {
        return selectIcon;
    }

    public void setSelectIcon(String selectIcon) {
        this.selectIcon = selectIcon;
    }

    public String getUnselectIcon() {
        return unselectIcon;
    }

    public void setUnselectIcon(String unselectIcon) {
        this.unselectIcon = unselectIcon;
    }

    public int getUnReadCount() {
        return unReadCount;
    }

    public void setUnReadCount(int unReadCount) {
        this.unReadCount = unReadCount;
    }

    public boolean isHasFunction() {
        return isHasFunction;
    }

    public void setHasFunction(boolean hasFunction) {
        isHasFunction = hasFunction;
    }

    @Override
    public String toString() {
        return "MyRoonEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", selectIcon='" + selectIcon + '\'' +
                ", unselectIcon='" + unselectIcon + '\'' +
                ", unReadCount=" + unReadCount +
                ", isHasFunction=" + isHasFunction +
                '}';
    }

    @Override
    public int compareTo(MyRoonEntity o) {
        return this.id - o.getId();
    }

    @Override
    public int getItemType() {
        return type;
    }
}
